#include "Monitor.h"

Monitor::Monitor() {

}

Monitor::Monitor(string pid, string brand, int stock, int price, int size) 
	: Products( pid, brand, stock, price) {
		setSize(size);
}

int Monitor::getSize() {
	return this->size;
}

void Monitor::setSize(int size) {
	this->size = size;
}

void Monitor::productInfo() {
	Products::productInfo();
	stringstream ss;
	ss << getSize() << " inch";
	//cout << " |" << getSize();
	cout << " | " << setw(12) << ss.str();
}
